[8.x](backport #41424) [libbeat]: Add lowercase processor#41526
Merged
Conversation
* [libbeat] Add lowercase_fields and uppercase_fields processors * [libbeat]: Add lowercase_key processor * only loweercase * changelog * addressed comments minus documentation * addressed comments & documentation * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/lowercase.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/lowercase.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * case insensitive search * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * case insensitive search * using flattenkeys * changelog * cosmetic changes * lowercase with flattenKeys * lowercase with foldvalue * Update CHANGELOG.next.asciidoc Co-authored-by: Denis <denis@rdner.de> * resolved conflicts * added license * full_path search * cosmetic changes * using alterpath * update version * refactor * linter issues * fix * fix * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/alterFieldProcessor.go Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * Update libbeat/processors/actions/docs/lowercase.asciidoc Co-authored-by: Denis <denis@rdner.de> * skip mandatory fields with test * skip mandatory fields * additonal logic to skipping mandatory field * optimization * fix test case * fix flaky test --------- Co-authored-by: davidifr <davidfr.mail@gmail.com> Co-authored-by: Denis <denis@rdner.de> (cherry picked from commit bfde79f)
rdner
approved these changes
Nov 5, 2024
Contributor
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed commit message
Part of #22254
This PR implements the
lowercaseprocessor. It continues the implementation done here #34022. It converts event keys that match the provided fields to lowercase. It performs case insensitive matching by defaultExample:
NewAlterFieldProcessorcan be used to extenduppercaseprocessor.This is an automatic backport of pull request #41424 done by [Mergify](https://mergify.com).